package com.coolingme.simple;

/**
 * 建造者测试
 *
 * @author wangyue
 * @date 2020/9/30 10:54
 */
public class Test {
    public static void main(String[] args) {
        CourseBuilder courseBuilder = new CourseBuilder();
        courseBuilder.addName("Java设计模式");
        courseBuilder.addVideo("http://www.XXXXX.com/video?id=123456");
        courseBuilder.addNote("简单建造者测试");
        Course course = courseBuilder.build();
        System.out.println(course);
    }
}
